package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

@TableName("litemall_scheduled_job_log")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class LitemallScheduledJobLog {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String className;
    private String cron;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime addTime;
    @TableField("`group`")
    private String group;
    @TableField("`desc`")
    private String desc;
    private String taskName;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date nextFireTime;
    private String jobName;
    private String jobGroup;
    private Date fireInstanceId;
    private String parameter;

}
